package packl;

public class point {
	double x,y,z;
    public point(double _x,double _y,double _z){
    	x=_x;
    	y=_y;
    	z=_z;
	}
	public point() {
	}
	public double 
	getDistance(point dest) {
		return Math.sqrt((this.x-dest.x)*(x-dest.x)
				+(y-dest.y)*(y-dest.y)+(z-dest.z)*(z-dest.z));
	}

}
class TestPoint{
	public static void main(String[]args) {
		point origin=new point();
		point dest=new point(1.0,2.0,3.0);
		System.out.println(dest.getDistance(origin));
	}
}